package com.wn.class30.service.impl;

import com.wn.class30.entity.JoinImgCase;
import com.wn.class30.mapper.JoinImgCaseDao;
import com.wn.class30.service.JoinImgCaseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class JoinImgCaseServiceImpl implements JoinImgCaseService {
    @Resource
    private JoinImgCaseDao joinImgCaseDao;
    @Override
    public List<JoinImgCase> selectJoinImgCase() throws Exception {
        return joinImgCaseDao.selectByExample(null);
    }

    @Override
    public void deleteImgCases() throws Exception {
        joinImgCaseDao.deleteByExample(null);
    }

    @Override
    public void insertImgCase(JoinImgCase joinImgCase) throws Exception {
        joinImgCaseDao.insert(joinImgCase);
    }
}
